<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="sealte.mynode.pojo.User" %>
<%@ page import="java.util.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>MyNode</title>
<link rel="stylesheet" type="text/css" href="css/div2.css">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/index_jsp.js"></script>
</head>
<body>
<%
	User user = (User)session.getAttribute("user");
	int user_id = user.getId();
	String user_name = user.getName();
	String user_email = user.getEmail();
 %>
<center>
<h1><%=user_name.toUpperCase()%>'s MyNode</h1><br/>
Email:<%=user_email%> #--# <a href="UserLogout?id=<%=user_id%>">Logout</a>
#--# <a href="home.jsp">Back</a>
	<div>
		<form action="EssayAddNew" method="POST">
		<input type="hidden" name="author" value="<%=user_id%>"/>
		<table>
			<tr>
			<td align="right">TITLE:</td>
			<td align="left"><input type="text" name="title" size="30"/></td>
			</tr>
			<tr>
			<td align="right">CONTENT:</td>
			<td align="left"><textarea name="content" rows="10" cols="60"></textarea></td>
			</tr>
			<tr>
			<td align="center" colspan="2"><input type="submit" value="Submit" /></td>
			</tr>
		</table>
		</form>
	</div>
	<div>
		<table>
		<tr><th colspan="2" align="center">Current Server</th></tr>
		<tr><td align="right">Session:</td><td align="left"><%=session.getId()%></td></tr> 
		<tr><td align="right">IP:</td><td align="left"><%=java.net.InetAddress.getLocalHost()%></td></tr>
		<tr><td align="right">TempDir:</td><td align="left"><%=System.getProperty("java.io.tmpdir")%></td></tr>
		</table>
	</div>
</center>
</body>
</html>